Skip to content

Instantly share code, notes, and snippets.

{
"editor.stickyScroll.scrollWithEditor": true,
"editor.showFoldingControls": "always",
"explorer.compactFolders": false,
"workbench.tree.indent": 15,
"workbench.tree.renderIndentGuides": "always",
"diffEditor.diffAlgorithm": "advanced",
"diffEditor.experimental.showEmptyDecorations": true,
"diffEditor.experimental.showMoves": true,
"editor.guides.bracketPairs": true,
@pratyakshm
pratyakshm / Sideloading_apps_in_WSA.md
Last active May 10, 2024 13:22
Sideloading apps on Windows Subsystem for Android in Windows 11

Sideloading APKs in to Windows Subsystem for Android

Update (9th July, 2022): An app is available that does just this.

Check out WSATools by Simone Franco: https://www.microsoft.com/store/apps/9N4P75DXL6FG


Setting up ADB to work with WSA

  • Launch Windows Subsystem for Android.
@boaglio
boaglio / atalhos-ij.md
Last active May 10, 2024 13:17
Atalhos do IntelliJ - para quem veio do Eclipse

Atalhos do IntelliJ

Principais

Caiu no IntelliJ agora?

Aprenda só esses:

Tipo de Atalho IntelliJ IDEA
@TimKraemer
TimKraemer / trip2excel.py
Last active May 10, 2024 13:17
python script to create a driver's log book "Fahrtenbuch" for Excel based on Google's Maps Timeline takeout data
import json
import sys
from datetime import datetime
import csv
import os
from geopy.geocoders import Nominatim # pip install geopy
def convert_date(date_str):
# Parse the ISO 8601 format date string
@githubcom13
githubcom13 / Protonmail.md
Last active May 10, 2024 13:12 — forked from ibaiul/Protonmail.md
Configure the protonmail bridge linux client on Ubuntu 20.04 and Debian 10 server

Protonmail on Ubuntu 20.04 and Debian 10 server

#protonmail #debian #linux

Before you start

Currently protonmail bridge for linux is distributed as part of an open beta program, but soon it will be made public (https://protonmail.com/bridge/install).

Consider that the bridge linux client requires a paid protonmail account to work.

Get the protonmail bridge linux installer

@heroheman
heroheman / ranger-cheatsheet.md
Last active May 10, 2024 13:12
Ranger Cheatsheet

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
from io import BytesIO
from petrel_client.client import Client
from nibabel import FileHolder, Nifti1Image
from gzip import GzipFile
import numpy as np
# url 就是 s3:// 路径
def open_npy(url):
conf_path = '~/petreloss.conf'
@mustafabutt-dev
mustafabutt-dev / chatgpt-and-google-docs.gs
Created February 3, 2023 22:04
Google Docs Integration with ChatGPT
// DROP DOWN MENU
function onOpen() {
DocumentApp.getUi().createMenu("ChatGPT")
.addItem("Generate Image", "generateImage")
.addItem("Generate synonym ", "generateSynonym")
.addItem("Write a tagline", "tagLine")
.addToUi();
}
// ****END MENU****
@wojteklu
wojteklu / clean_code.md
Last active May 10, 2024 13:02
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@MikuroXina
MikuroXina / endless-error-loop.py
Created December 26, 2022 15:50
Lyrics of "Endless Error Loop" by Neko Hacker feat. ななひら.
print('''<header>
ここをもうちょっとシンプルに変えてっと
え、なにこのエラー・・・
</header>''')
try:
uglyCode()
except:
print('よくあるError')
try: